import { request } from '@/service/request';
import { OnlineUser } from "@/views/monitor/online/index";


export function fetchOnlineUsers(page: Common.Page<OnlineUser>) {
  return request({
    url: '/monitor/online/list',
    data: { page },
    method: 'POST',
  });
}

export function fetchRetreatUser(id: Common.IdType) {
  return request({
    url: '/monitor/online/' + id,
    method: 'DELETE',
  });
}

